package com.mqr.wallet.vo;

/**
 * <B>主类名称：</B>CashResult<BR>
 * <B>概要说明：</B>提现结果对象<BR>
 *
 * @author mqr
 * @since 2023年2月21日 下午12:52:50
 */
public class CashResult {

    /**
     * 银行提现流水号
     */
    private String cashNo;

    /**
     * 提现状态码
     */
    private String code;

    /**
     * 提现结果说明
     */
    private String message;

    public CashResult(Builder builder) {
        this.cashNo = builder.cashNo;
        this.code = builder.code;
        this.message = builder.message;
    }

    public CashResult() {
    }

    // 提供静态方法创建 Builder
    public static Builder builder() {
        return new Builder();
    }

    public static class Builder {
        private String cashNo;
        private String code;
        private String message;

        public Builder cashNo(String cashNo) {
            this.cashNo = cashNo;
            return this;
        }

        public Builder code(String code) {
            this.code = code;
            return this;
        }

        public Builder message(String message) {
            this.message = message;
            return this;
        }

        public CashResult build() {
            return new CashResult(this);
        }
    }

    public String getCashNo() {
        return cashNo;
    }

    public void setCashNo(String cashNo) {
        this.cashNo = cashNo;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
